package com.woniu.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.core.util.PageInfo;
import com.woniu.order.dto.AdminOrderSearchDto;
import com.woniu.order.dto.TCourseOrderDto;
import com.woniu.order.form.AdminOrderSearchForm;
import com.woniu.order.form.UserRefundForm;
import com.woniu.order.model.TCourseOrder;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 吴彦祖
 * @since 2024年04月02日
 */
public interface TCourseOrderService extends IService<TCourseOrder> {

    List<TCourseOrderDto> search(Integer userId)throws Exception;

    PageInfo<AdminOrderSearchDto> adminList(AdminOrderSearchForm form) throws Exception;

    String refund(UserRefundForm form) throws Exception;
}
